/**
 * @mainpage GSeq
 *
 * This is a version on the popular videogame Tetris created in C++ with the use
 * of "Allegro - A game programming library".
 * You need to install allegro 5.0 if you want to run the game.
 * 
 * If you need to install allegro 5.0 you can donwload the source here:
 * http://alleg.sourceforge.net/download.html 
 * 
 * If you have Ubuntu you can find a good installation guide here:
 * http://wiki.allegro.cc/index.php?title=Ubuntu_and_Allegro_5
 * 
 * This version of the game also as been programmed with the version C++ 11.
 * 
 * To install the game you need to open your command terminal,  navigate inside
 * the folder of the Game and run the command make.
 * 
 * If you don't have "make" on your personal computer, you need to install it. 
 * 
 * After the installation is completed you'll find the executable in the Tetris 
 * folder. Double-Click on it and have fun!
 *
 * The software start here: main()
 *
 * @author Luca Galli e Loris Casagrandi
 */

/*
 * Richieste dei fan:
 * _ Musica
 * _ Schermata di GameOver (se ho voglia di vedere come mettere lo sleep)
 * _ potrei mettere il game over nel main menù dopo la prima partita e un game
 * over scritto nella sezione di inserimento in leaderboard.
 * _ Controllare necessità dell'include <cassert>
*/

#include <cstdlib>
#include "menu.h"

unsigned int MASK;

using namespace std;

/**
 *
 * 
 * In the main menù of the game is initialized everything we need of allegro in 
 * the game and we lunch the Main Menu of the game.
 * 
 * @param argc
 * @param argv
 * @return 
 */
int main(int argc, char** argv) {
  if(argc>1) 
    MASK = atoi(argv[1]);

  InitAllegro();
    
  Menu();

  Close();
  
  return 0;
}

